package sjjg;

public class Sjx2 {
    public static void main(String[] args) {
        int[][] A={{1,0,0,0},{1,2,0,0},{2,1,3,0},{1,2,1,4}};
        int[] B = new int[34];

        for (int i = 0; i <A.length ; i++) {
            for (int j = 0; j <A[i].length ; j++) {
                if (A[i][j]!=0){
                    B[i*10+j]=A[i][j];
                }
            }
        }


    }
}
